home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 026-050 / scopedisk33 / dmouse11 / dmouse.doc < prev    next >
Text File  |  1995-03-18  |  10KB  |  259 lines

  1.  
  2. V1.10               DMOUSE.DOC           30 Sep 1988
  3.  
  4.               Matthew Dillon
  5.               891 Regal Rd
  6.               Berkeley, California 94708
  7.               USA
  8.  
  9.     WORKBENCH USERS:    PLEASE READ THE REVISION HISTORY FOR V1.09 FOR
  10. SOLUTION TO INTUITION WINDOWTOFRONT() BUG.
  11.  
  12.     YAIH (Yet Another Input Handler)... nahh, like DMouse better...
  13. for "Dillon's Mouse"???   Placed in PUBLIC DOMAIN because it's such a
  14. nifty program!
  15.  
  16.     After looking at and rejecting several mouse-intuition input
  17. handler enhancers (you know, accelerate the mouse, click-to-front, etc...)
  18. and finding them all useless, I have written my own.
  19.  
  20.     - Any option can be turned off or modified.
  21.  
  22.     - Screen blanks if keyboard or mouse is idle > N1 secs (def 300)
  23.         (mouse also blanks even if mouse blanking not turned on)
  24.  
  25.     - The Pesky Mouse blanks if mouse is idle > N2 secs (def 5)
  26.  
  27.     - Auto Activate a window when the mouse is moved over it.  Window
  28.       also activated (if not already active) when you type.  These
  29.       two features may be turned on/off independantly
  30.  
  31.     - Mouse Accelerator.  Back feeds power into the mouse unit;
  32.       give it a nudge and it is guarenteed to penetrate up to an
  33.       inch and a half of wall plaster (programmable depth).  Once
  34.       you start using it, you won't be able to switch back!
  35.  
  36.     - Programmable command-key and command string ala PopCli, default
  37.       left-Amiga ESC.
  38.  
  39.     - Left Mouse Button click in window brings it to the front
  40.         DOES NOT BRING THE WINDOW TO THE FRONT IF IT IS ALREADY
  41.         IN THE FRONT.  Other programs would call WindowToFront() on
  42.         every click, which is horrible if you have a simple-refresh
  43.         window.  WindowToFront() is NOT called for backdrop windows!
  44.  
  45.         The qualifier along with the LMB is now settable with the -l option.
  46.  
  47.       # clicks required is settable.
  48.  
  49.     - Hold LMB, click Right Mouse Button .. Window to Back!  Great
  50.       for cycling windows.    See next feature for more info.
  51.  
  52.       (the qualifier, normally the left mouse button, can be set with
  53.        the -R option).
  54.  
  55.     - Same sequence as above, but if there is no window under the
  56.       current mouse position, there is only one window on the screen,
  57.       or the window under the mouse is a BACKDROP window, the
  58.       sequence cycles through Screens!
  59.  
  60.     - NO DAMN CLOCK.  Use another utility to get a clock.  No other
  61.       glossy thrills.  DMouse is short, sweet, and functional.
  62.  
  63.     - Does not use a CLI, should be placed in your startup-sequence.
  64.       DO NOT 'RUN' DMOUSE!
  65.  
  66. INSTALLATION:
  67.  
  68.     Place dmouse-handler in L: (or in the 'current' directory when DMOUSE
  69.     is run).
  70.  
  71.     WORKBENCH USERS!!!!!!!!!!    There appears to be a bug in intuition's
  72.     WindowToFront() call, which can lock up intuition when workbench
  73.     icons are active.  Under the defaults, this will occur whenever you
  74.     depress the left mouse button over an icon.
  75.  
  76.     A partial fix is in place V1.07 and beyond.  However, if you find
  77.     it still freezing up, the problem can be avoided as follows:  Either
  78.     turn off the left-mouse-button window- to-front feature (-L0) or leave
  79.     it on and set the number of clicks required to 2 (-c2) (and don't use
  80.     the feature while your mouse is over an icon).  V1.09 gives you yet
  81.     a THIRD option which is even more preferable ... change the qualifier
  82.     that goes along with the left mouse button to something other than 0,
  83.     like 3 (either shift). -l3
  84.  
  85.  
  86. EXECUTE FROM A CLI (e.g. WORKBENCH STARTUP SCRIPT), example:
  87.  
  88.     1> DMouse -C newcli "<nil: >nil: con:320/120/320/80/Shell c:shell.exe"
  89.  
  90.     There is no need to 'RUN' DMouse.  A double set of quotes may be
  91.     required for the program to work properly with ConMan.
  92.  
  93.     NOTE:   Your script in c:shell.exe should prefix all commands with a
  94.         full path or the boot drive (usually DF0:) will be accessed,
  95.         causing a requestor to appear if no disk is inserted.
  96.  
  97.  
  98. TO KILL:
  99.  
  100.     1> dmouse QUIT
  101.  
  102. IPC SUPPORT:
  103.  
  104.     This is very new and you should ignore this if you don't have any
  105.     idea what I'm talking about.  The IPC is done via the dres.library
  106.     and thus this must be installed in the system to use it.  Dmouse
  107.     installs itself as "dmouse.CMD" in the IPC domain and accepts
  108.     associated commands.  The project name is ignored and the command
  109.     may be one of:
  110.  
  111.         mouse    - turn on the mouse
  112.         nomouse    - turn off the mouse
  113.         blank    - blank the screen
  114.         noblank    - unblank the screen
  115.  
  116.     DMouse timeouts remain in effect.
  117.  
  118. SOURCE:
  119.  
  120.     Source is compileable under Aztec, +L (32 bit ints) and suitable
  121.     precompiled include file (remember the precompiled include file must
  122.     be precompiled with +L also).  Use the c32.lib library (Aztec C)
  123.  
  124.     Precompiled include files:    All amiga includes that are in
  125.     sub-directories (i.e. */*.h, but not things like <stdio.h>)
  126.     You also need two other creations of mine:    sup32.lib and dres.lib .
  127.     dres.lib is a tag library for dres.library, and although dres.library
  128.     is optional at execution time, dres.lib is required at link time.
  129.  
  130.  
  131. COMMAND LINE ARGUMENTS:
  132.  
  133.     If DMouse is already running, any specified options will be
  134.     incorporated.
  135.  
  136.     quit    QUIT .. remove DMouse
  137.     -h        HELP
  138.     -a#     Set acceleration to #.    Default 3,         1 disables option
  139.     -t#     Set mouse acceleration threshhold, pixs/ev. default 0.
  140.     -s#     Set screen timeout to # (secs), Default 300, 0 disables option
  141.     -m#     Set mouse timeout to # (secs), Defalut 5,    0 disabled option
  142.     -c#     Set # of clicks required to bring window to front (def 1)
  143.     -p#     Set input handler priority (def 51) should always be > 50
  144.         (initial invocation only)
  145.  
  146.     -w#     0 = use UpFrontLayer() etc... 1 = use WindowToFront() etc...
  147.         WindowToFront() properly refreshes SIMPLE_REFRESH windows
  148.         but a bug intuition can cause it to crash the machine if
  149.         a workbench icon is active at the time.
  150.  
  151.     -L0/1    Disable/Enable left-button brings window to front
  152.     -A0-3    Disable/Enable AUTO-ACTIVATE. Bit #0 = mouse auto-activate
  153.                           #1 = keyboard auto-activate
  154.             (default 3, which enables both)
  155.  
  156.     -lqqqq    Set Qualifier (HEX) with LMB for Window To Front (default is
  157.          0, meaning no qualifier).  Example:    -l0003 sets it to
  158.          either shift key.
  159.  
  160.     -Rqqqq    Set Qualifier (HEX) with RMB for Window To Back (default is
  161.          the LMB qualifier).  Setting the qualifier to 0 disables
  162.          the feature.
  163.  
  164.     -Kcccc    Set Keycode (HEX)   for command key (default 0045)
  165.  
  166.     -Qqqqq    Set Qualifier (HEX) for command key (default 0040)
  167.  
  168.     -C CMD    Set Command to run.  Default is NEWCLI.  Remaining arguments
  169.         on command line is the command.
  170.  
  171.  
  172.             QUALIFIERS (always entered in HEX)
  173.  
  174.     0001    Left Shift
  175.     0002    Right Shift
  176.     0004    Caps Lock
  177.     0008    Control
  178.     0010    Left Alt
  179.     0020    Right Alt
  180.     0040    Left Amiga Key
  181.     0080    Right Amiga Key
  182.     0100    Numeric Key Pad Key (not useful for dmouse)
  183.     0200    Repeat        (not useful for dmouse)
  184.     0400    Interrupt        (not useful for dmouse)
  185.     0800    Multibroadcast    (not useful for dmouse)
  186.     1000    Middle Mouse Button (not normally implemented by intuition)
  187.     2000    Right Mouse Button
  188.     4000    Left Mouse Button
  189.  
  190.     Note:    Combinations are allowed, in which case any one of the
  191.         selected qualifiers along with the left, right mouse button
  192.         or command key will cause the appropriate action to occur.
  193.  
  194.  
  195. RELEASE HISTORY:
  196.  
  197. V1.11
  198.     -Intelligent requester handling: auto-activate is disabled while the
  199.      active window has a requester in it.  Slight modification of key
  200.      handling (key-up events are ignored by DMouse).  Addition of
  201.      text-based IPC to blank/unblank the mouse/screen.
  202.  
  203. V1.10
  204.     -Fixed -A bug ... -A2 now enables auto-activate-on-key and disables
  205.      auto-activate-on-mouse
  206.  
  207. V1.09
  208.  
  209.     Workbench users probably want to use the following options: -w1 -l0003
  210.     These use WindowToFront() (your windows get refreshed properly), but
  211.     also requires you to depress a shift key + LMB to get the window-to-front
  212.     feature.
  213.  
  214.     dmouse -w1 -l0003
  215.  
  216.     -SELECTABLE USE OF UpFrontLayer() etc..  OR  WindowToFront() etc...
  217.      Workbench users should use WindowToFront() (-w1), while CLI users
  218.      probably want to use UpFrontLayer() (default).
  219.  
  220.      Reason:    WindowToFront()/Back can crash the Amiga if called while
  221.      a workbench ICON is highlighted.  Unfortunetly, UpFrontLayer(), which
  222.      does not have the bug, also does not automatically refresh
  223.      simple-refresh windows!
  224.  
  225.     -New option -lqqqq (SET QUALIFIER WITH LEFT MOUSE BUTTON TO GET
  226.      WINDOW-TO-FRONT FEATURE).    WORKBENCH USERS NOTE:  By setting this
  227.      qualifier to a shift key, for instance, you can safely move icons
  228.      around without crashing the machine because DMouse will not issue
  229.      the WindowToFront() call unless you are holding the qualifier key
  230.      down while pressing the left mouse button.
  231.  
  232.     -Bug fixed thanks to user persistance!  If you disable mouse blanking,
  233.      and enable screen blanking (which blanks the mouse too when it
  234.      happens), hitting a key would bring back the screen but not the mouse.
  235.  
  236. V1.08
  237.      Botched.
  238.  
  239. V1.07
  240.     -All intuition calls are made from an independant process rather than
  241.      the input handler routine.  This also fixes a couple of deadlock bugs,
  242.      but not the workbench-icon deadlock bug.
  243.     -Mouse response is no longer jerky when the system is loaded down.
  244.     -Keyboard-Auto-Activate-Window independant of Mouse-Auto-Activate-Window
  245.      (enhanced -A option)
  246.     -No need to OR the -Q qualifier with 8000 anymore
  247.     -WindowToFront() never called for backdrop windows, which ought to fix
  248.      the workbench freeze bug and other problems.
  249.     -Mouse automatically blanked when screen blanks, whether mouse blanking
  250.      is enabled or not.
  251.     -Can set input handler priority (initial invocation only).
  252.     -New Timeouts go into effect immediately rather than after the
  253.      next mouse/keyboard event.
  254.  
  255. V1.00-V1.06
  256.     Before Written history
  257.  
  258.  
  259.